<!-- Copyright 2013 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// -->
<!DOCTYPE html>
<title>Unit Test of e2e.hmacprf</title>
<script src="../../../closure/base.js"></script>
<script src="test_js_deps-runfiles.js"></script>
<script>
    goog.require('goog.crypt');
    goog.require('goog.testing.jsunit');
    goog.require('e2e.hash.Sha1');
    goog.require('e2e.HmacPRF');
</script>
<script>
    function testWithDefaultHashFunction() {
      var hmacPRF = new e2e.HmacPRF();
      var key = '000102030405060708090a0b0c0d0e0f' +
          '101112131415161718191a1b1c1d1e1f';
      var input = '';
      assertEquals(32, hmacPRF.getHmacPRF(goog.crypt.hexToByteArray(key),
                                    goog.crypt.hexToByteArray(input)).length);
    }
</script>
